// Open Source: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Project: YoProgramo.NET (http://code.google.com/p/yoprogramo/)
// Autor: Fabian Figueredo (info@fabianfigueredo.com.ar)
// Blog: blog.yoprogramo.net

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

namespace YoProgramo.Web.Controllers
{
    public class ErrorController : Controller {
        [AcceptVerbs(HttpVerbs.Get)]
        public ViewResult Unknown(string path) {
            Response.StatusCode = (int)HttpStatusCode.InternalServerError;
            return View("Unknown");
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ViewResult NotFound(string path) {
            Response.StatusCode = (int)HttpStatusCode.NotFound;
            return View("Unknown", path);
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ViewResult IsLocked(string path) {
            Response.StatusCode = (int)HttpStatusCode.NotFound;
            return View("IsLocked", path);
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ViewResult KickBan(string path) {
            Response.StatusCode = (int)HttpStatusCode.NotFound;
            return View("KickBan", path);
        }

    }
}
